package list;

public class Person implements Comparable<Person> {
	
	private int age;
	
	public Person() {
		super();
	}

	public Person(int age) {
		super();
		this.age = age;
	}

	@Override
	public String toString() {
		return "Person [age=" + age + "]";
	}

	@Override
	public int compareTo(Person o) {
		return o.age-this.age;
	}

}
